package com.dd.cloud.user.entity.admin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author Lx
 * @version 1.0
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "管理员用户销售信息表")
public class AdminSaleInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 数据表说明:管理员用户销售信息表
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 管理员id
     */
    @Column(comment = "管理员id")
    private Integer adminId;

    /**
     * 姓名
     */
    @Column(length = 20, comment = "姓名")
    private String name;

    /**
     * 年龄
     */
    @Column(length = 4, comment = "年龄")
    private Integer age;

    /**
     * 性别 1男 2女
     */
    @Column(length = 4, comment = "性别 1男 2女")
    private Integer sex;

    /**
     * 手机号
     */
    @Column(length = 11, comment = "手机号")
    private String mobileNumber;

    /**
     * 区域
     */
    @Column(length = 20, comment = "区域")
    private String region;

    /**
     * 邮箱
     */
    @Column(length = 30, comment = "邮箱")
    private String email;

    /**
     * 备注
     */
    @Column(length = 500, comment = "备注")
    private String remark;

    /**
     * 邀请码
     */
    @Column(length = 6, comment = "邀请码")
    private String inviteCode;

    /**
     * 状态 1正常 -1删除
     */
    @Column(length = 4, comment = "状态 1正常 -1删除")
    private Integer status;

    /**
     * 创建人id
     */
    @Column(length = 4, comment = "创建人id")
    private Integer createId;

    /**
     * 创建人
     */
    @Column(length = 20, comment = "创建人")
    private String createName;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间")
    private LocalDateTime createDate;

    /**
     * 最后一次修改时间
     */
    @Column(comment = "最后一次修改时间")
    private LocalDateTime updateDate;
}
